﻿#region using statements

using Microsoft.Xna.Framework;

using NGen;

#endregion

namespace AeonOfStrife.Objects.Units.UnitStates
{
	public class UnitStateIdle : UnitState
	{
		public UnitStateIdle(AnimationInfo p_animationInfo)
			: base(p_animationInfo) {}

		public override void Initialize() {
			Parent.Target = null;
			base.Initialize();
		}

		public override void Update(GameTime p_gameTime) {
			Parent.AcquireTarget();
			if(Parent.Target != null)
				Parent.Change(Parent.m_runState);
			base.Update(p_gameTime);
		}

		public override void Cleanup() {
			base.Cleanup();
		}

		public override void OnEnter() {
			base.OnEnter();
		}

		public override void OnExit() {
			base.OnExit();
		}
	}
}